package com.twu.biblioteca;

/**
 * Created by dhanesharole on 6/22/14.
 */
public class Movie extends Item {
    private final String director;
    private final int rating;

    Movie(String name, String year, String director, int rating, boolean checkedOut) {
        super(name, checkedOut, year);
        this.director = director;
        this.rating = rating;
    }

    public String toString() {
        return name;
    }

    @Override
    public Object[] fields() {
        return new Object[]{super.name, super.year, this.director, this.rating};
    }
}
